package com.sym.architecture.vm

import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch

class MainVm : ViewModel() {

    fun requestFlowData() {

        viewModelScope.launch {

            flowRequest {
                getListProject()
            }.collect {
                Log.i("SYM", it.toString())
            }
        }
    }
}